package com.trg.designmodel.prototype.copy;

import java.io.Serializable;

/**
 * @ClassName: Student
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/2 10:48
 * @Version: 1.0
 * @Return:
 **/
public class Student implements Cloneable, Serializable {
    private static final long serialVersionUID = 21L;

    private String name;
    private String height;
    private int age;

    public Student(String name, String height, int age) {
        this.name = name;
        this.height = height;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", height='" + height + '\'' +
                ", age=" + age +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
